// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   BarDataSerie.java

package com.java4less.rchart;

import com.java4less.rchart.gc.ChartColor;
import com.java4less.rchart.gc.ChartFont;
import com.java4less.rchart.gc.GraphicsProvider;
import java.util.Vector;

// Referenced classes of package com.java4less.rchart:
//			DataSerie, FillStyle, LineStyle

public class BarDataSerie extends DataSerie
{

	public static final int BORDER_NORMAL = 0;
	public static final int BORDER_LOWERED = 1;
	public static final int BORDER_RAISED = 2;
	public static final int BORDER_NO = 3;
	public FillStyle style;
	public FillStyle negativeStyle;
	public LineStyle border;
	public LineStyle border2;
	public LineStyle negativeborder;
	public LineStyle negativeborder2;
	public ChartColor valueColor;
	public ChartFont valueFont;
	public int borderType;
	public FillStyle barStyles[];
	Vector barStart;

	public BarDataSerie(FillStyle s)
	{
		negativeStyle = null;
		border2 = null;
		negativeborder = null;
		negativeborder2 = null;
		valueColor = GraphicsProvider.getColor(ChartColor.BLACK);
		valueFont = null;
		borderType = 0;
		barStart = new Vector(0, 5);
		style = s;
	}

	public void addBarsBase(double b[])
	{
		if (b == null)
			return;
		for (int i = 0; i < b.length; i++)
			barStart.addElement(new Double(b[i]));

	}

	public BarDataSerie(double x[], double y[], FillStyle s)
	{
		super(x, y);
		negativeStyle = null;
		border2 = null;
		negativeborder = null;
		negativeborder2 = null;
		valueColor = GraphicsProvider.getColor(ChartColor.BLACK);
		valueFont = null;
		borderType = 0;
		barStart = new Vector(0, 5);
		style = s;
	}

	public BarDataSerie(double y[], FillStyle s)
	{
		super(y);
		negativeStyle = null;
		border2 = null;
		negativeborder = null;
		negativeborder2 = null;
		valueColor = GraphicsProvider.getColor(ChartColor.BLACK);
		valueFont = null;
		borderType = 0;
		barStart = new Vector(0, 5);
		style = s;
	}
}
